package com.me.forum.request;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public final class PageRequest extends BaseRequest {
	private String title;
	private String pageContent;
	
	private String pageTypeId;
	private String plateId;
	private String userId;
	

	//page实体类的安全验证 by Orange
	@Override
	public Boolean isLegal() {
		return title != null && !title.isEmpty() &&
			pageContent != null && !pageContent.isEmpty()
			;
	}
}
